<h1 id="Avatar-Setting"><a href="#Avatar-Setting" class="headerlink" title="Avatar Setting"></a>Avatar Setting</h1><p>Valine is used in <a href="http://cn.gravatar.com/">Gravatar</a> (with <code>gravatar.cat.net</code> mirror service) as commentator avatar.<br>Has <code>seven</code> optional values:  </p>
<table>
<thead>
<tr>
<th style="text-align:center">value</th>
<th style="text-align:center">style</th>
<th>memo</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center">Empty string:<code>&#39;&#39;</code></td>
<td style="text-align:center"><img src="https://gravatar.cat.net/avatar/adb831a7fdd83dd1e2a309ce7591dff8?s=40" alt="Gravatar official graphics"></td>
<td>Gravatar official graphics</td>
</tr>
<tr>
<td style="text-align:center"><code>mm</code></td>
<td style="text-align:center"><img src="https://gravatar.cat.net/avatar/adb831a7fdd83dd1e2a309ce7591dff8?s=40&amp;d=mm" alt="Mystic man (a grayhead)"></td>
<td>Mystic man (a grayhead)</td>
</tr>
<tr>
<td style="text-align:center"><code>identicon</code></td>
<td style="text-align:center"><img src="https://gravatar.cat.net/avatar/adb831a7fdd83dd1e2a309ce7591dff8?s=40&amp;d=identicon" alt="Abstract geometry"></td>
<td>Abstract geometry(Generated by <code>email</code> or <code>nickname</code>)</td>
</tr>
<tr>
<td style="text-align:center"><code>monsterid</code></td>
<td style="text-align:center"><img src="https://gravatar.cat.net/avatar/adb831a7fdd83dd1e2a309ce7591dff8?s=40&amp;d=monsterid" alt="little monster"></td>
<td>little monster</td>
</tr>
<tr>
<td style="text-align:center"><code>wavatar</code></td>
<td style="text-align:center"><img src="https://gravatar.cat.net/avatar/adb831a7fdd83dd1e2a309ce7591dff8?s=40&amp;d=wavatar" alt="A combination of different faces and backgrounds"></td>
<td>A combination of different faces and backgrounds(Generated by <code>email</code> or <code>nickname</code>)</td>
</tr>
<tr>
<td style="text-align:center"><code>retro</code></td>
<td style="text-align:center"><img src="https://gravatar.cat.net/avatar/adb831a7fdd83dd1e2a309ce7591dff8?s=40&amp;d=retro" alt="Eight-pixel retro portrait"></td>
<td>Eight-pixel retro portrait(Generated by <code>email</code> or <code>nickname</code>)</td>
</tr>
<tr>
<td style="text-align:center"><code>hide</code></td>
<td style="text-align:center">&nbsp;</td>
<td>Hidden avatar</td>
</tr>
</tbody>
</table>
<p>!&gt; The parameter value <code>hide</code> is supported at <code>v1.1.8-beta</code>.</p>
<p>!&gt; If the value of <code>avatar</code> is not equal to one of the seven parameters, the default value is<code>mm</code>.</p>
<pre><code class="js"><span class="keyword">new</span> Valine({
    ...
    avatar:<span class="string">''</span> <span class="comment">// (''/mm/identicon/monsterid/wavatar/retro/hide)</span>
});
</code></pre>
